<template>
  <div class="hz">
    <div class="hzleft"  @click="$router.push({ path: '/caseinfoeditor',query:{id:banners.id} })">
      <img :src="banners.img" alt="" />
    </div>
    <div class="hzright">
      <div class="content"  @click="$router.push({ path: '/caseinfoeditor',query:{id:banners.id} })">
        <div class="title">
          <p>{{ banners.nm }}</p>
          <div class="version" v-if="!banners.globalReleased">
            <p>2D</p>
            <p>IMAX</p>
          </div>
          <div class="version" v-if="banners.globalReleased">
            <p>3D</p>
          </div>
        </div>
        <div class="score" v-if="banners.globalReleased">观众评&nbsp;<b>{{ banners.sc }}</b></div>
        <div class="score" v-if="!banners.globalReleased"><b>{{ banners.wish }}人想看</b></div>
        <div class="actor">{{ banners.desc }}</div>
        <div class="show-info">{{ banners.showInfo }}</div>
      </div>
      <div class="redbtn" v-if="banners.globalReleased" @click="$router.push({ path: '/purchase',query:{id:banners.id} })">
        <span>购票</span>
      </div>
      <div class="bluebtn" v-if="!banners.globalReleased">
        <span>预售</span>
      </div>
    </div>
  </div>
</template>

<script setup>
defineProps({
  banners: {
    required: true,
  },
});
</script>

<style lang="scss" scoped>
.hz{
  margin-top: 5rem;
  display: flex;
  .hzleft{
    width: 75rem;
    height: 120rem;
    img{
      margin: 2rem 2rem 0 10rem;
      width: 100%;
      height: 100%;
    }
  }
  .hzright{
    width: 80vw;
    display: flex;
    margin-left: 15rem;
    padding-bottom: 22rem;
    border-bottom: 1rem solid #aaa;
    justify-content: space-between;
    .content{
      .title{
        margin: 10rem 0 0 5rem;
        font-size: 17rem;
        font-weight: 700;
        color: #333;
        display: flex;
        .version{
          display: flex;
          p{
            font-size: 10rem;
            line-height: 20rem;
          }
          :nth-child(1){
            width: 20rem;
            height: 20rem;
            margin: 2rem 0 0 0;
            transform:scale(0.7,0.7);
            text-align: center;
            line-height: 20rem;
            background-color: #509fc9;
            color: #fff;
            box-sizing : border-box
          }
          :nth-child(2){
            height: 20rem;
            margin: 2rem 0 0 -8rem;
            transform:scale(0.7,0.7);
            background-color: #fff;
            color: #509fc9;
            border: 1rem solid #509fc9;
            box-sizing : border-box
          }
        }
      }
      .score{
        margin: 5rem 0 0 5rem;
        font-size: 14px;
        color: #666;
        b{
          color: #faaf00;
        }
      }
      .actor{
        margin: 5rem 0 0 5rem;
        font-size: 14px;
        color: #666;
      }
      .show-info{
        margin: 5rem 0 0 5rem;
        font-size: 14px;
        color: #666;
      }
    }
    .bluebtn{
      width: 45rem;
      height: 25rem;
      padding: 2rem;
      color: #fff;
      line-height: 20rem;
      text-align: center;
      border-radius: 20rem;
      margin: 50rem 10rem 0 0;
      background-color: #509fc9;
    }
    .redbtn{
      width: 45rem;
      height: 25rem;
      padding: 2rem;
      color: #fff;
      margin: 50rem 10rem 30rem;
      line-height: 20rem;
      text-align: center;
      border-radius: 20rem;
      background-color: #f03d37;
    }
  }
}
</style>
